Add ESP32 env + bugfixes#28
Merged
Merged
Conversation
jonasniesner
pushed a commit
that referenced
this pull request
Jul 6, 2026
MJ-16: The compressed direct-write path emitted generic {0xFF, 0xFF} error
frames, so a failing command was unidentifiable. The published spec says error
frames are 0xFF followed by the command code ({0xFF, cmd}). Make the firmware
conform by setting the second byte to the failing command's low byte, matching
the existing {0xFF, 0x72} gray4 END frame.
Sites (src/display_service.cpp):
- handleDirectWriteCompressedData length-overflow guard -> {0xFF, 0x71} (DATA)
- handleDirectWriteCompressedData zlib-stream failure -> {0xFF, 0x71} (DATA)
- handleDirectWriteStart decompressed-size mismatch -> {0xFF, 0x70} (START)
- handleDirectWriteStart initial zlib-stream failure -> {0xFF, 0x70} (START)
- handlePartialWriteStart zero logical-size guard -> {0xFF, 0x76} (PARTIAL START)
- handleDirectWriteEnd compressed final-flush failure -> {0xFF, 0x72} (END)
Backward-compatible with updated clients: py-opendisplay PR #120's
is_compressed_failure_frame() accepts both {0xFF, 0xFF} and {0xFF, 0x70} for the
compressed-START fallback, and the website direct-write handler (PR #28) treats
any leading-0xFF frame as an error.
Claude-Session: https://claude.ai/code/session_012g2e8mr132vcizx92WsgiR
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.